<?php
	$this->load->view('components/header');
	$str = '';
	$CI = & get_instance();
	$CI->load->library(array('auth'));
	if($CI->auth->is_Admin() == 1)
		$str = '<li class="current_page_item"><a style="background-color: #FF4200" href="' . base_url().'admin">Admin Panel</a></li>';

?>
<!-- Header Wrapper -->
<div id="header-wrapper" style="color: ">
    <div class="container">
        <div class="row">
            <div class="12u">

                <!-- Header -->
                <header id="header">

                    <!-- Logo -->
                    <div id="logo">
                        <h1><a href="<?php echo base_url()?>" id="logo">YourBlog.Com</a></h1>
                        <span><!--sub title--></span>   <!--TODO write subtitle-->
                    </div>

                    <!-- Nav -->
                    <nav id="nav">
                        <ul>
                            <li class="<?php echo ($current_page==0) ? 'current_page_item' : '' ?>"><a href="<?php echo base_url()?>">Home</a></li>
	                        <li class="<?php echo ($current_page==1) ? 'current_page_item' : '' ?>"><a href="<?php echo base_url().'blog'?>">Your Blog</a></li>
                            <li class="<?php echo ($current_page==2) ? 'current_page_item' : '' ?>"><a href="<?php echo base_url().'profile'?>">Profile</a></li>
                            <li><a href="<?php echo base_url().'user/logout'?>">Logout</a></li>
	                        <?php echo $str; ?>

                        </ul>
                    </nav>

                </header>

            </div>
        </div>
    </div>
</div>


